package org.hotDating.android.individual.mmi;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;


public class Login extends Activity{
	
    private static final int ACTIVITY_HOTDATING=0;
	
	Button btnLogin;
	Button btnCancel;
	EditText edtUsername;
	EditText edtPassword;
	View progress;
	Activity me;
	
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.login);
		me = this;
		btnLogin = (Button) findViewById(R.id.login_button_login);
        btnCancel = (Button) findViewById(R.id.login_button_cancel);

        edtUsername = (EditText) findViewById(R.id.login_edit_username);
        edtPassword = (EditText) findViewById(R.id.login_edit_password);
        
        btnLogin.setOnClickListener(new View.OnClickListener() {
		    public void onClick(View view) {
		    	Intent i = new Intent(Login.this, DatingMap.class);
//		    	startActivityForResult(i, ACTIVITY_HOTDATING);
		    	startActivity(i);
		    	me.finish();
		    }
        });
        
        btnCancel.setOnClickListener(new View.OnClickListener() {
		    public void onClick(View view) {
		    	finish();
		    }
        });
	}
	


}
